
#include "Color3.h"


namespace soft_renderer
{
	Color3::Color3(double r, double g, double b) : _r(r), _g(g), _b(b)
	{
	}

	double Color3::r()
	{
		return _r;
	}

	double Color3::g()
	{
		return _g;
	}

	double Color3::b()
	{
		return _b;
	}

	void Color3::set(double r, double g, double b)
	{
		_r = r;
		_g = g;
		_b = b;
	}

	void Color3::copy(const Color3& c)
	{
		_r = c._r;
		_g = c._g;
		_b = c._b;
	}
}

